<?php 
    include_custom("/views/admin/header.php");
?>

<div id="main_container">

	<div class="header">
      <?php 
    include_custom("/views/admin/menu_header.php");
    ?>      
    </div>
    
    <div class="main_content">
    
            <?php 
    include_custom("/views/admin/menu.php");
?>        
                    
                    
                    
                    
    <div class="center_content">  

    
    <div class="right_content">            
        
    <h2>Thêm phòng trọ</h2> 
                    
                    
<div class="block_form">
<form action="index.php?rt=admin/post_create_room" method="post">
  <table width="100%">
    <colgroup width="15%">
    </colgroup>
    <colgroup width="85%">
    </colgroup>
    <tr>
      <td>Tiêu đề:</td>
      <td><input name="title" type="text"></td>
    </tr>
    <tr>
      <td>Mô tả ngắn:</td>
      <td>
           <textarea name="shortdescription"  style="width: 500px; height: 150px;"></textarea>
      </td>
        </tr>
           <tr>
      <td>Mô tả :</td>
      <td>
           <textarea name="description"  style="width: 500px; height: 150px;"></textarea>
      </td>
        </tr>
        
         <tr>
        <td>Tên chủ nhà :</td>
      <td>
           <input type="text" name="tenchunha" value="" />
      </td>
      </tr>
      
        <tr>
        <td>Số nhà :</td>
      <td>
           <input type="text" name="sonha" value="" />
      </td>
      </tr>
       <tr>
        <td>Kiệt :</td>
      <td>
           <input type="text" name="kiet" value="" />
      </td>
      </tr>
      <tr>
        <td>Phường :</td>
      <td>
           <select name="phuong">
           <?php foreach($phuongs as $phuong): ?>
           <option value="<?php echo $phuong->id; ?>"><?php echo $phuong->name; ?></option>
           <?php endforeach; ?>
           </select>
      </td>
      </tr>
       <tr>
        <td>Đường :</td>
      <td>
           <select name="duong">
           <?php foreach($duongs as $duong): ?>
           <option value="<?php echo $duong->id; ?>"><?php echo $duong->name; ?></option>
           <?php endforeach; ?>
           </select>
      </td>
      </tr>
      
       <tr>
        <td>Điện thoại nhà :</td>
      <td>
           <input type="text" name="dt_nha" value="" />
      </td>
      </tr>
       <tr>
        <td>Điện thoại di động :</td>
      <td>
           <input type="text" name="dt_didong" value="" />
      </td>
      </tr>
       <tr>
        <td>Email :</td>
      <td>
           <input type="text" name="email" value="" />
      </td>
      </tr>
       <tr>
        <td>Gía phòng tối đa :</td>
      <td>
           <input type="text" name="gia_phong_max" value="" />
      </td>
      </tr>
      
       <tr>
        <td>Giá phòng tối thiểu :</td>
      <td>
           <input type="text" name="gia_phong_min" value="" />
      </td>
      </tr>
       <tr>
        <td>Gía điện :</td>
      <td>
           <input type="text" name="giadien" value="" />
      </td>
      </tr>
       <tr>
        <td>Gía nước :</td>
      <td>
           <input type="text" name="gia_nuoc" value="" />
      </td>
      </tr>
      
       <tr>
        <td>Gần chợ :</td>
      <td>
           <input type="radio" value="1" name="gan_cho" /> Có
           <input type="radio" value="0" name="gan_cho" /> Không
      </td>
      </tr>
      
      <tr>
        <td>Gần đường :</td>
      <td>
           <input type="radio"  value="1" name="gan_duong" /> Có
           <input type="radio"  value="0"  name="gan_duong" />Không
      </td>
      </tr>
      
      <tr>
        <td>Internet :</td>
      <td>
           <input type="radio" value="1"  name="internet" />Có
           <input type="radio" value="0"  name="internet" />Không
      </td>
      </tr>
      
      <tr>
        <td>Có phòng khép kín :</td>
      <td>
           <input type="radio" value="1"  name="is_phong_khep_kin" />Có
           <input type="radio" value="0"  name="is_phong_khep_kin" />Không
      </td>
      </tr>
      
      <tr>
        <td>Google map :</td>
      <td>
           <input type="radio"  value="1" name="isGoogleMap" /> Có
           <input type="radio"  value="0" name="isGoogleMap" /> Không
      </td>
      </tr>
            <tr>
        <td>Tiêu đề Google map :</td>
      <td>
           <input type="text"  name="titleGoogleMap" />
      </td>
      </tr>
      
         <tr>
        <td>Nội dung Google map :</td>
      <td>
           <input type="text"  name="contentGoogleMap" />
      </td>
      </tr>
      
               <tr>
        <td>Tọa độ longitude :</td>
      <td>
           <input type="text"  name="longitude" />
      </td>
      </tr>
      
         <tr>
        <td>Tọa độ latitude :</td>
      <td>
           <input type="text"  name="latitude" />
      </td>
      </tr>
      
      <tr>
      <td>Phòng mới :</td>
      <td>
           <input type="radio"  value="1" name="new" /> Có
           <input type="radio" value="0" name="new" /> Không
      </td>
        </tr>
        <tr>
      <td>Stick  :</td>
      <td>
           <input type="radio" value="1"  name="new" /> Có
           <input type="radio" value="0"  name="new" /> Không
      </td>
        </tr>
      <tr>
      <td>Trạng thái:</td>
      <td>
            <select name="status">
                <option  value="1">Hoạt động</option>
                <option  value="0">Không hoạt động</option>
            </select>
      </td>
    </tr>
    
	<tr>
      <td></td>
      <td><input type="submit" name="submit" value="Submit"></td>
    </tr>
  </table>
  </form>
</div>



     </div><!-- end of right content-->
                                
  </div>   <!--end of center content -->               
                    
<?php 
    include_custom("/views/admin/footer.php");
?>